import request from '@/utils/request'

// 查询学位点列表
export function listPoints(query) {
  return request({
    url: '/DegreePoints/points/list',
    method: 'get',
    params: query
  })
}

// 查询学位点详细
export function getPoints(pointId) {
  return request({
    url: '/DegreePoints/points/' + pointId,
    method: 'get'
  })
}

// 新增学位点
export function addPoints(data) {
  return request({
    url: '/DegreePoints/points',
    method: 'post',
    data: data
  })
}

// 修改学位点
export function updatePoints(data) {
  return request({
    url: '/DegreePoints/points',
    method: 'put',
    data: data
  })
}

// 删除学位点
export function delPoints(pointId) {
  return request({
    url: '/DegreePoints/points/' + pointId,
    method: 'delete'
  })
}

//专家查询学位点接口
export function getPointsByExpertId() {
  return request({
    url: '/DegreePoints/points/byExpertId',
    method: 'get'
  })
}

//根据学位点ID查询
export function getPointsByPointId() {
  return request({
    url: '/DegreePoints/points/byUId',
    method: 'get'
  })
}

//导出学位点报告
export function downLoadReport(){
  return request({
    url: '/expert/downLoad',
    method: 'post'
  })
}